// 状态机的核心代码逻辑

import Vue from "vue";
import Vuex from "vuex";
import count from "./modules/count";
import good from "./modules/good";
import category from "./modules/category";
import collapse from "./modules/collapse";
import user from "./modules/user";
Vue.use(Vuex);
const store = new Vuex.Store({
  modules: {
    count: count, //键名是模块名
    good,
    category,
    collapse,
    user,
  },
});
export default store;
